<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

 <link href="./STYLE/index-style.css" rel="stylesheet" type="text/css" />
<style>

*{ 
	margin:0px;
	padding:0px;}
</style>
</head>

<body>
<div id="top">
<div id="left_top"></div>
<div id="title"></div>

<div id="_right_top"><br />

欢迎[sunsunsisiyu]进入系统
</div>
</div>
<div id="nav">
  <ul>
    <li><a href="#" >首　　页</a></li>
    <li><a  onclick="xuanke()">选课操作</a></li>
    <li><a  onclick="info()">信息修改</a></li>
    <li><a  onclick="kecheng()">课程介绍</a></li>
    <li><a  onclick="about()">关于选课</a></li>
  </ul>
</div>
<div id="content">
  <div id="cleft"><br />
	<font color="#FFFFFF"><b>您所在的用户组：学生</b></font><br /><br />
    <div id="tishi1"><font color="#FFFFFF"><b>学生操作项目>></b></font></div>
    <div class="leftnav" id="nav1">
      <div class="left"></div>
      <div class="middle"><a  target="mainframe" onclick="location='<%=basePath%>servlet/ClassServlet'"><b>选修课程</b></a></div>
	<div class="right"></div>
    </div>
    <div class="leftnav" id="nav2">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>成绩查询</b></a></div>
      <div class="right"></div>
    </div>
    <div class="leftnav" id="nav3">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>个人信息修改</b></a></div>
      <div class="right"></div>
    </div>
    <div class="leftnav" id="nav5">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>选课信息修改</b></a></div>
      <div class="right"></div>
    </div>
    <div id="tishi2"><font color="#FFFFFF"><b>教师操作项目>></b></font></div>
    <div class="leftnav" id="nav6">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>成绩查询</b></a></div>
      <div class="right"></div>
    </div>
    <div class="leftnav" id="nav7">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>选修成绩打分</b></a></div>
      <div class="right"></div>
    </div>
    <div class="leftnav" id="nav8">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>查看选修</b></a></div>
      <div class="right"></div>
    </div>
    <div class="leftnav" id="nav4">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>学生信息修改</b></a></div>
      <div class="right"></div>
    </div>
    <div class="leftnav" id="nav9">
      <div class="left"></div>
      <div class="middle"><a href="#"><b>人员管理</b></a></div>
      <div class="right"></div>
    </div>
    <div id="userinfo">
    用户头像：<img  src="images/1.jpg" /><br />
    用户姓名：sunsiyu<br />
    学生证号：06060606<br />
	所在专业：SoftwareEggenior<br />
    所在班级：0802<br />
    </div>
  </div>
  <div id="cright"><iframe src="" width="650" height="500" allowtransparency="true" frameborder="0" name="mainframe" id="mainframe"></iframe></div>
</div>
</body>
</html>
<script>
function xuanke(){
	for(i=1;i<=9;i++){
		var id = "nav"+i;
		document.getElementById("nav"+i).style.display = "none";
	}
	document.getElementById("nav1").style.display="block";
	document.getElementById("nav2").style.display="block";
	document.getElementById("nav6").style.display="block";
	document.getElementById("nav7").style.display="block";
	document.getElementById("nav8").style.display="block";
	document.getElementById("tishi1").style.display="block";
	document.getElementById("tishi2").style.display="block";
	
	
	//document.getElementById("nav3").style.display="block";
}
function info(){
	for(i=1;i<=9;i++){
		var id = "nav"+i;
		document.getElementById("nav"+i).style.display = "none";
	}
	document.getElementById("nav3").style.display="block";
	document.getElementById("nav4").style.display="block";
	document.getElementById("nav5").style.display="block";
	document.getElementById("tishi1").style.display="block";
	document.getElementById("tishi2").style.display="block";
	document.getElementById("nav9").style.display="block";
}
function kecheng(){
	for(i=1;i<=9;i++){
		var id = "nav"+i;
		document.getElementById("nav"+i).style.display = "none";
	}
	document.getElementById("tishi1").style.display="none";
	document.getElementById("tishi2").style.display="none";
}
function about(){
	for(i=1;i<=9;i++){
		var id = "nav"+i;
		document.getElementById("nav"+i).style.display = "none";
	}
	document.getElementById("tishi1").style.display="none";
	document.getElementById("tishi2").style.display="none";
}
function xuanxiuframe(){
	document.getElementById("mainframe").style.display="block";
}
</script>